import java.io.*;

public class ssl {

	public static String[] next(BufferedReader br) throws IOException {
		String server[] = new String[2];
		String zeile = br.readLine();
		if (zeile == null)
			return null;
		server[0] = zeile.substring(0, zeile.indexOf(";") - 1);
		server[1] = zeile.substring(zeile.indexOf(";") + 1, zeile.length());
		return server;
	}

	public static void main(String[] args) throws IOException {

		String server[] = new String[2];
		FileWriter writer;
		File file;

		FileReader fr = new FileReader(
				"C:/Users/Besitzer/workspace/SSL/src/input.txt"); // Dateipfad
																	// anpassen
		file = new File("C:/Users/Besitzer/workspace/SSL/src/output.txt"); //Pfad anpassen
		BufferedReader br = new BufferedReader(fr);
		writer = new FileWriter(file);

		while (true) {
			server = next(br);
			if (server == null)
				break;
			// System.out.println(server[0] + "::" + server[1]);
			/*
			 * TO DO: savessl(getssl(server));
			 */

			writer.write("SSL Zertifikat\n");
			writer.flush();
			
		}
		writer.close();
		br.close();
	}

}
